package com.wdg.controller;

import com.wdg.pojo.Login_log;
import com.wdg.dao.LogDao;
import com.wdg.dao.impl.LogDaoImpl;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.ArrayList;

/**
 * @Author : wdg；
 * @Date : 2025/3/30 6:28；
 * @Version : v1.0.0；
 * @Description: 类描述信息；
 **/
@Controller
public class LogController {
    LogDao ldao = new LogDaoImpl();

    @RequestMapping("findLogList.action")
    public String findLogList(HttpServletRequest request, HttpServletResponse response) throws Exception {
        ArrayList<Login_log> findList = ldao.selectLog();
        request.setAttribute("list", findList);
        return "logList";
    }

}
